import { Tabs } from "expo-router";
import { Ionicons } from "@expo/vector-icons";
import CustomHeader from "@/components/CustomHeader";


export default function TabsLayout() {
  return (
      <Tabs
        screenOptions={{
          tabBarActiveTintColor: "tomato",
        }}
      >
        <Tabs.Screen
          name="index"
          // header={props => <CustomHeader {...props} />},
          options={{
            tabBarLabel: "首页",
            title: "首页",
            // headerShown: false,
            tabBarIcon: ({ color, size }) => (
              <Ionicons name="home" size={size} color={color} />
            ),
          }}
        />
        <Tabs.Screen
          name="my"
          options={{
            title: "我的",
            // headerShown: false,
            tabBarIcon: ({ color, size }) => (
              <Ionicons name="person" size={size} color={color} />
            ),
          }}
        />
      </Tabs>
  );
}
